package com.lijian.dubbo.beans;

import java.io.Serializable;

import javax.validation.constraints.Min;

import org.hibernate.validator.constraints.NotEmpty;

public class User implements Serializable{
	
	
	private static final long serialVersionUID = 8332069385305414629L;
	@NotEmpty(message="姓名不可为空")
	private String name;
	@Min(value=18,message="年龄必须大于18岁")
	private Integer age;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;
	}
	
	
}
